#include "MenuItem.h"

namespace FunctionViewer {
	void MenuItem::Init(MenuBar* imenubar, char* name, int ix, int iy, int iwidth, int iheight, Draw idraw) {
		menubar = imenubar;
		MIName = name;
		x = ix;
		y = iy;
		width = iwidth;
		height = iheight;
		draw = idraw;
	}

	char* MenuItem::getName() {
		return MIName;
	}

	void MenuItem::drawItem() {
		draw.text(x, y, 1, 1, 1, MIName);
	}
}